(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  define(['lib/dao', 'lib/dao_factory'], function(Dao, DaoFactory) {
    'use strict';
    var UserDao, _ref;
    UserDao = (function(_super) {
      __extends(UserDao, _super);

      function UserDao() {
        _ref = UserDao.__super__.constructor.apply(this, arguments);
        return _ref;
      }

      UserDao.prototype.controllerURL = 'usuario/';

      UserDao.prototype.verificarUsuarioLogado = function() {
        return this.fetchRaw('GET', this.controllerURL + 'logado');
      };

      UserDao.prototype.recuperarPorEmail = function(email) {
        return this.fetchRaw('GET', this.controllerURL + '/email', null, {
          email: email
        });
      };

      return UserDao;

    })(Dao);
    DaoFactory.register('user_dao', UserDao);
    return UserDao;
  });

}).call(this);
